package com.logicalthinking.socialmall.entity;

import com.github.chenlijia1111.utils.core.annos.PropertyCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;
import javax.persistence.*;

/**
 * 用户个人认证信息
 * @author chenLiJia
 * @since 2020-02-17 14:43:32
 * @version 1.0
 **/
@ApiModel("用户个人认证信息")
@Table(name = "m_client_authenticate_self")
@Setter
@Getter
@Accessors(chain = true)
public class ClientAuthenticateSelf {
    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @PropertyCheck(name = "用户id")
    @Id
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 手机号
     */
    @ApiModelProperty("手机号")
    @PropertyCheck(name = "手机号")
    @Column(name = "telephone")
    private String telephone;

    /**
     * 名字
     */
    @ApiModelProperty("名字")
    @PropertyCheck(name = "名字")
    @Column(name = "name")
    private String name;

    /**
     * 身份证号码
     */
    @ApiModelProperty("身份证号码")
    @PropertyCheck(name = "身份证号码")
    @Column(name = "id_card")
    private String idCard;

    /**
     * 身份证正面照片
     */
    @ApiModelProperty("身份证正面照片")
    @PropertyCheck(name = "身份证正面照片")
    @Column(name = "id_card_front_image")
    private String idCardFrontImage;

    /**
     * 身份证背面照片
     */
    @ApiModelProperty("身份证背面照片")
    @PropertyCheck(name = "身份证背面照片")
    @Column(name = "id_card_back_image")
    private String idCardBackImage;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @PropertyCheck(name = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 编辑时间
     */
    @ApiModelProperty("编辑时间")
    @PropertyCheck(name = "编辑时间")
    @Column(name = "update_time")
    private Date updateTime;

}